package latihan.action;

import java.util.logging.Logger;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

@Results({@Result(name=LandingPage.PAGE2, location="/WEB-INF/pages/page2.jsp")})

@ParentPackage("default")
@Namespace("/main/landing")
public class LandingPage extends BaseController {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4683119382900173939L;

	public Logger log = Logger.getLogger(LandingPage.class.getName());
	
	protected final static String PAGE2 = "page2";
	
	@Action(value=PAGE2)
	public String execute(){
		log.info("page 2");
		return PAGE2;
	}
}
